package com.webwork.mood.record.service;

import java.util.Date;
import java.util.List;

import com.webwork.mood.record.dataobject.DrawInfo;
import com.webwork.mood.record.dataobject.DrawRecord;
import com.webwork.mood.util.Paging;

public interface DrawRecordService {

	public void insert(DrawRecord record);

	public List<DrawRecord> query(DrawRecord record);

	public List<DrawRecord> query(DrawRecord record, Paging page);

	public DrawRecord get(String userId, String awardName, Date drawDate);
	
	public int count(DrawRecord record);

	public List<DrawInfo> query(DrawInfo draw);
	
	public int count(DrawInfo draw);

	public DrawInfo get(String userId, String awardName);
	
	public void insert(DrawInfo drawInfo);
	
	public void update(DrawInfo drawInfo);

	public List<DrawRecord> getUserDraw(String userId, Date date);

	public List<Integer> getDrawDate();
	
}